// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router/index'
import VueResource from 'vue-resource'
import VueRouter from 'vue-router';
import store from './store/index';

Vue.config.productionTip = false
Vue.use(VueResource)
Vue.use(VueRouter);
// 全局样式
import './main.less'

//公用的方法
import common from './commonFunction/common';
Vue.prototype.common = common;

//全局指令
import directive from './directive/index';

new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
